package pegasus.eai.sgnmd.ws;

public class MetroEInterfaceProxy implements pegasus.eai.sgnmd.ws.MetroEInterface {
  private String _endpoint = null;
  private pegasus.eai.sgnmd.ws.MetroEInterface metroEInterface = null;
  
  public MetroEInterfaceProxy() {
    _initMetroEInterfaceProxy();
  }
  
  public MetroEInterfaceProxy(String endpoint) {
    _endpoint = endpoint;
    _initMetroEInterfaceProxy();
  }
  
  private void _initMetroEInterfaceProxy() {
    try {
      metroEInterface = (new pegasus.eai.sgnmd.ws.MetroE_WSLocator()).getProjects_SgnMd_initial_AsMetroEEss_pegasus_eai_sgnmd_server_AsMetroEEss_MetroE_WS();
      if (metroEInterface != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)metroEInterface)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)metroEInterface)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (metroEInterface != null)
      ((javax.xml.rpc.Stub)metroEInterface)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pegasus.eai.sgnmd.ws.MetroEInterface getMetroEInterface() {
    if (metroEInterface == null)
      _initMetroEInterfaceProxy();
    return metroEInterface;
  }
  
  public pegasus.eai.sgnmd.ws.StatusDO updateActStatus(pegasus.eai.sgnmd.ws.ActReqDO in0) throws java.rmi.RemoteException{
    if (metroEInterface == null)
      _initMetroEInterfaceProxy();
    return metroEInterface.updateActStatus(in0);
  }
  
  
}